'use strict';


const Service = require('egg').Service;

class GlobalAdminService extends Service {
  async login(params) {
    try {
      const result = await this.ctx.modelmysql.GlobalAdmin.findOne({
        where: {
          username: params.username,
        },
      });
      return result
    } catch (error) {
      console.log(error);
    }
  }
}


module.exports = GlobalAdminService;
